package com.example.hms.controller;

import com.example.hms.servicelmpl.DashboardService;
import com.example.hms.util.Result;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/dashboard")
public class DashboardController {
    @Resource
    private DashboardService dashboardService;
    @RequestMapping(value = "/selectRoomNumber", method = RequestMethod.GET)
    public Result selectRoomNumber(){
        return dashboardService.selectRoomNumber();}
    @RequestMapping(value = "/selectLiveNumber", method = RequestMethod.GET)
    public Result selectLiveNumber(){
        return dashboardService.selectLiveNumber();}
    @RequestMapping(value = "/selectMoney", method = RequestMethod.GET)
    public Result selectMoney(String month){
        return dashboardService.selectMoney(month);}
    @RequestMapping(value = "/selectMoneyByMonth", method = RequestMethod.GET)
    public Result selectMoneyByMonth(String month){
        return dashboardService.selectMoneyByMonth(month);}

}
